const express = require('express');
const router = express.Router();
const authMiddleware = require('../middlewares/auth');
const userController = require('../controllers/userController');
const messageController = require('../controllers/messageController');

// 用户路由
router.use('/users', require('./userRoutes'));

// 消息路由（需要认证）
router.use('/messages', authMiddleware.authenticate, require('./messageRoutes'));

// 其他路由可以继续添加...


module.exports = router;